package io.renren.service.impl;

import io.renren.dao.CertificatesDao;
import io.renren.entity.CertificatesEntity;
import io.renren.service.CertificatesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("certificatesService")
public class CertificatesServiceImpl implements CertificatesService {
	@Autowired
	private CertificatesDao certificatesDao;
	
	@Override
	public CertificatesEntity queryObject(Integer id){
		return certificatesDao.queryObject(id);
	}
	
	@Override
	public List<CertificatesEntity> queryList(Map<String, Object> map){
		return certificatesDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return certificatesDao.queryTotal(map);
	}
	
	@Override
	public void save(CertificatesEntity certificates){
		certificatesDao.save(certificates);
	}
	
	@Override
	public void update(CertificatesEntity certificates){
		certificatesDao.update(certificates);
	}
	
	@Override
	public void delete(Integer id){
		certificatesDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		certificatesDao.deleteBatch(ids);
	}
	
}
